﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace State
{
    public interface IState<E>
    {
        bool Try2ChangeState<T>() where T : E;
        void OnStateEnter(E perviousState);
        void OnStateExit(E nextState);
    }
}
